﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/master.Master" AutoEventWireup="true" CodeBehind="UserMaintenanceUI.aspx.cs" Inherits="Staionery_Inventory.Presentation.Admin.UserMaintenanceUI__Reload_" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <%-- Title--%>
        <div class="form-group">
            <div class="col-sm-2"></div>
            <label class="col-sm-7" style="font-size:xx-large">User Maintenance</label>
        </div>

        <%-- EmployeeId --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <%-- lbl --%>
                <label for="txtEmployeeId" class="control-label col-sm-3">Employee ID: </label>
                <%-- btn --%><%-- txt --%>
                <div class="col-sm-3">
                    <div class="input-group">
                        <span class="input-group-btn">
                            <asp:Button ID="btnPrev" runat="server" Text="◀" class="btn btn-primary" 
                            onclick="btnPrev_Click" />
                        </span>
                        <asp:TextBox ID="txtEmployeeID" runat="server" class="form-control" 
                            ReadOnly="True"></asp:TextBox>
                        <span class="input-group-btn">
                            <asp:Button ID="btnNext" runat="server" Text="▶" class="btn btn-primary" 
                            onclick="btnNext_Click" />
                        </span>
                    </div>
                </div>
                <div class="col-sm-4"></div>
            </div>

        <%-- Name --%>
        <div class="form-group">
            <div class="col-sm-1"></div>
            <%-- lbl --%>
            <label for="txtName" class="control-label col-sm-3">Name: </label>
            <%-- txt --%>
            <div class="col-sm-3">
                <asp:TextBox ID="txtName" runat="server" class="form-control" 
                    placeholder="Enter User Name" ReadOnly="True" required></asp:TextBox>
            </div>
        </div>

        <%-- Role --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <%-- lbl --%>
                <label for="btnRole" class="control-label col-sm-3">Role: </label>
                <%-- ddl --%>
                <div class="col-sm-3">
                    <asp:DropDownList ID="ddlRole" CssClass="form-control" runat="server" Enabled="False">
                        <asp:ListItem Value="Choose a Role">Choose a Role</asp:ListItem>
                        <asp:ListItem>Clerk</asp:ListItem>
                        <asp:ListItem>Manager</asp:ListItem>
                        <asp:ListItem>Supervisor</asp:ListItem>
                        <asp:ListItem>Head</asp:ListItem>
                        <asp:ListItem>Employee</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="col-sm-4">
                    <asp:Button ID="btnUpdatePassword" runat="server" Text="Reset Password" 
                        class="btn btn-success btn-sm" onclick="btnUpdatePassword_Click" />
                </div>
            </div>

        <%-- DeptID --%>
        <div class="form-group">
            <div class="col-sm-1"></div>
            <%-- lbl --%>
            <label for="txtDeptID" class="control-label col-sm-3">Department Id: </label>
            <%-- ddl --%>
            <div class="col-sm-3" onkeypress="return keypress(event)">
                <asp:TextBox ID="txtDeptID" runat="server" class="form-control" 
                    placeholder="Enter Department ID" ReadOnly="True"></asp:TextBox>
            </div>
            <div class="col-sm-4">
                <asp:Button ID="btnUpdateDelegate" runat="server" Text="Reset Delegate" 
                    class="btn btn-primary btn-sm" onclick="btnUpdateDelegate_Click" required />
            </div>
        </div>

        <%-- HeadID --%>
        <div class="form-group">
            <div class="col-sm-1"></div>
            <%-- lbl --%>
            <label for="txtHeadId" class="control-label col-sm-3">Department Head Id: </label>
            <%-- txt --%>
            <div class="col-sm-3" onkeypress="return keypress(event)">
                <asp:TextBox ID="txtHeadId" runat="server" class="form-control" 
                    placeholder="Enter Department Head Id" ReadOnly="True" required></asp:TextBox>
            </div>
        </div>
        
        <%-- Phone --%>
        <div class="form-group">
            <div class="col-sm-1"></div>
            <%-- lbl --%>
            <label for="txtPhone" class="control-label col-sm-3">Contact No: </label>
            <%-- txt --%>
            <div class="col-sm-3" onkeypress="return keypress(event)">
                <asp:TextBox ID="txtPhone" runat="server" class="form-control" 
                    placeholder="Enter Contact No" ReadOnly="True" required></asp:TextBox>
            </div>
        </div>

        <%-- Email --%>
        <div class="form-group">
            <div class="col-sm-1"></div>
            <%-- lbl --%>
            <label for="txtEmail" class="control-label col-sm-3">Email: </label>
            <%-- txt --%>
            <div class="col-sm-4">
                <asp:TextBox ID="txtEmail" runat="server" class="form-control" 
                    placeholder="Enter Email" ReadOnly="True" required></asp:TextBox>
            </div>
        </div>

        <%-- button group --%>
            <div class="form-group">
                <div class="col-sm-2"></div>
                <div class="col-sm-2">
                    <asp:Button class="btn btn-success btn-lg" ID="btnCreate" runat="server" 
                        Text="New" style="width:90px" onclick="btnCreate_Click" />
                </div>
                <div class="col-sm-2">
                    <asp:Button class="btn btn-primary btn-lg" ID="btnUpdateUser" runat="server" 
                        Text="Update" style="width:90px" onclick="btnUpdateUser_Click" />
                </div>
            </div>

            <%-- message label --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <asp:Label ID="lblMessage" runat="server" Text="" class="control-label col-sm-8"></asp:Label>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Please enter a correct email" 
                    ForeColor="Red" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                <asp:Button ID="btnDelete" runat="server" Text="Delete" 
                    onclick="btnDelete_Click" Visible="False" />
            </div>

</asp:Content>
